package com.itheima.htmo_01.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@TableName(value  = "questions",autoResultMap = true)
public class Questions {

    @TableId(type = IdType.AUTO)
    private Long id;

//    @TableField(value = 'aa')
    private String title;

    private Long userId;

    private String description;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<Integer> imageIds;

    private LocalDateTime creatTime;

}
